import {useReducer} from "react";

export const useForceUpdate = function(){
    const [,dispatch] = useReducer(function(state){
        console.log("state",state);
        return !state;
    },true);
    return dispatch;
}